package cn.tedu.csmall.passport.service;

import cn.tedu.csmall.commons.vo.PageData;
import cn.tedu.csmall.passport.pojo.param.AdminAddNewParam;
import cn.tedu.csmall.passport.pojo.param.AdminLoginInfoParam;
import cn.tedu.csmall.passport.pojo.param.AdminUpdateParam;
import cn.tedu.csmall.passport.pojo.vo.AdminListItemVO;
import cn.tedu.csmall.passport.pojo.vo.AdminStandardVO;
import org.springframework.transaction.annotation.Transactional;

/**
* @author Administrator
* @description 针对表【ams_admin(管理员)】的数据库操作Service
* @createDate 2023-06-16 11:20:58
*/
@Transactional
public interface IAdminService {

    String login(AdminLoginInfoParam adminLoginInfoParam);

    void addNew(AdminAddNewParam adminAddNewParam);

    void deleteById(Long id);

    void updateInfoById(Long id, AdminUpdateParam adminUpdateParam);

    void updatePwdById(Long id, String password);

    AdminStandardVO getStandardById(Long id);

    PageData<AdminListItemVO> list(Integer pageNum);

    PageData<AdminListItemVO> list(Integer pageNum, Integer pageSize);
}
